<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemConfigTable extends Migration
{
    public function up()
    {
        Schema::create('system_config', function (Blueprint $table) {
            $table->mediumIncrements('id');
            $table->string('type', 50)->default('');
            $table->string('name', 50)->default('');
            $table->text('content')->nullable();
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('system_config');
    }
}
